function AdfScriptLoadingService(a,b,d){this.Init(a,b,d)}AdfObject.createSubclass(AdfScriptLoadingService);AdfScriptLoadingService.InitClass=function(){this.POLICY_SAME_ORIGIN="sameOrigin";this.POLICY_CROSS_ORIGIN="crossOrigin";this.POLICY_AUTO="auto";this.METHOD_ANY=0;this.METHOD_SYNCHRONOUS=1;this.METHOD_ASYNCHRONOUS=2;this.METHOD_BACKGROUND=3;this.STATUS_LOADING=0;this.STATUS_LOADED=1}; AdfScriptLoadingService.prototype.Init=function(a,b,d){AdfScriptLoadingService.superclass.Init.call(this);AdfAssert.assert(null==d||d==AdfScriptLoadingService.POLICY_SAME_ORIGIN||d==AdfScriptLoadingService.POLICY_CROSS_ORIGIN||d==AdfScriptLoadingService.POLICY_AUTO);this._domWindow=a;this._domDocument=b;this._policy=d;this._loadableScripts=[];this._loadingScript=null;this._loading=!1;this._loadListeners=[];this._syncCallback=this.createCallback(this._syncLoadComplete);this._asyncCallback=this.createCallback(this._asyncLoadComplete); this._sameOriginRegexp=this._createSameOriginRegexp();this._initLoadedLibraries(b)};AdfScriptLoadingService.prototype.addLibraryScript=function(a,b){if(!this._isLibraryLoaded(a)){this._markLibraryLoaded(a);var d=this.CreateLibraryLoadableScript(a,b);this._addLoadableScript(d)}};AdfScriptLoadingService.prototype.addInlineScript=function(a){a=new AdfInlineLoadableScript(this._domWindow,a);this._addLoadableScript(a)}; AdfScriptLoadingService.prototype.addCallbackScript=function(a,b,d){a=new AdfCallbackLoadableScript(a,b,d);this._addLoadableScript(a)};AdfScriptLoadingService.prototype.addLoadListener=function(a){AdfAssert.assertFunction(a);this._loadListeners.push(a)};AdfScriptLoadingService.prototype.removeLoadListener=function(a){var b=this._loadListeners;a=b.indexOf(a);-1b.indexOf("@none")&&(0>b.indexOf("@all")?(b=b.replace("@this",a["javax.faces.source"]).replace("@form", f.id),0>AdfCollections.indexOf(b.split(" "))&&(b+=" "+(e.name||e.id))):b="@all",a["javax.faces.partial.execute"]=b));null!=d.render&&(e=d.render,0>e.indexOf("@none")&&(e=e.indexOf("@all"<0)?e.replace("@this",a["javax.faces.source"]).replace("@form",f.id):"@all",a["javax.faces.partial.render"]=e));for(var h in d)switch(h){case "execute":case "render":case "onerror":case "onevent":break;default:a[h]=d[h]}AdfDhtmlPage.__addServerParamsToEvent(this,a)}AdfObject.createSubclass(AdfJsfAjaxRequestEvent,AdfComponentEvent); AdfJsfAjaxRequestEvent.REQUEST_EVENT_TYPE="jsfrequest";AdfJsfAjaxRequestEvent.prototype.Init=function(a){AdfAssert.assertPrototype(a,AdfUIComponent);AdfJsfAjaxRequestEvent.superclass.Init.call(this,a,AdfJsfAjaxRequestEvent.REQUEST_EVENT_TYPE)};AdfJsfAjaxRequestEvent.prototype.propagatesToServer=function(){return!0};AdfJsfAjaxRequestEvent.prototype.IsDeleveryDiscrete=function(){return!0};AdfJsfAjaxRequestEvent.queue=function(a,b,d){(new AdfJsfAjaxRequestEvent(a,b,d)).queue(!0)}; function AdfMarshalingService(){this.Init()}AdfObject.createSubclass(AdfMarshalingService);AdfMarshalingService.prototype.Init=function(){AdfMarshalingService.superclass.Init.call(this);this._typeMap={};this._nameMap={}};AdfMarshalingService.prototype.registerEncoder=function(a){var b=a.getTypeMap(),d=this._typeMap,e;for(e in b)d[e]={name:b[e],encoder:a}}; AdfMarshalingService.prototype.marshal=function(a,b,d){var e=this._getEncoderEntryByType(b.constructor);null==e&&(e=this._getEncoderEntryByType(Object));if(null==d)d=new AdfMarshalingService._ObjectStack;else if(d.isParent(b))return null;d.push(b);var f=e.encoder,e=e.name,e=AdfMarshalingService._createElementNS(a.ownerDocument,f.getNamespace(),e);a.appendChild(e);f.encode(e,b,d,this);d.pop(b);return e}; AdfMarshalingService.getDefault=function(){var a=AdfMarshalingService._defaultService;if(!a){var a=new AdfMarshalingService,b=new AdfMarshalingService._DE;a.registerEncoder(b);AdfMarshalingService._defaultService=a}return a};AdfMarshalingService.prototype._getEncoderEntryByType=function(a){a=a===String?"String":a===Boolean?"Boolean":a===Number?"Number":a===Array?"Array":a===Date?"Date":AdfUIComponent.prototype.isPrototypeOf(a.prototype)?"AdfUIComponent":AdfKeyStroke===a?"AdfKeyStroke":"Object";return this._typeMap[a]}; AdfMarshalingService._createElementNS=function(a,b,d){var e=AdfAgent.AGENT;return e.getPlatform()==AdfAgent.IE_PLATFORM&&11>e.getVersion()?a.createNode(1,d,b):a.createElementNS(b,d)};AdfMarshalingService._ObjectStack=function(){this.stack=[]};AdfMarshalingService._ObjectStack.prototype.push=function(a){this.stack.push(a)};AdfMarshalingService._ObjectStack.prototype.pop=function(){return this.stack.pop()}; AdfMarshalingService._ObjectStack.prototype.isParent=function(a){for(var b=this.stack,d=b.length,e=0;ed.getVersion()&&(a+="\x26oracle.adf.view.rich.forceHTML\x3dtrue");return this._addRequestToQueue(AdfXmlHttpDataTransferService._STREAMING_TYPE,null,a,null,null,null,null,AdfDataTransferService.TRANSFER_COMPLETE)}; AdfXmlHttpDataTransferService.prototype.streamingResponsesOutstanding=function(){return 0=this._reqCount,"Request count overflow"),a.getType()){case AdfXmlHttpDataTransferService._XMLHTTP_TYPE:this._doXmlHttpTransfer(a); break;case AdfXmlHttpDataTransferService._POLLING_TYPE:this._doXmlHttpTransfer(a,AdfDhtmlActiveData._requestCallback);break;case AdfXmlHttpDataTransferService._MULTIPART_TYPE:null!=a.getContent()?this._doXmlHttpTransfer(a,AdfDhtmlMultipartUpload._requestCallback):this._doTransferThroughIframe(a);break;case AdfXmlHttpDataTransferService._STREAMING_TYPE:var b=AdfAgent.AGENT,d=b.getDomWindow();this._streamingCount++;b.getPlatform()==AdfAgent.GECKO_PLATFORM&&d!=d.top?page.scheduleTimer(this,this._doStreamingTransfer, a,0):this._doStreamingTransfer(a);break;default:AdfAssert.assert(!1,"Unknown transfer type"),this._reqCount--}};AdfXmlHttpDataTransferService.prototype.suspend=function(){this._suspendCount++};AdfXmlHttpDataTransferService.prototype.resume=function(){this._suspendCount--;AdfAssert.assert(0<=this._suspendCount,"Suspend count underflow");this._isSuspended()||this._doNextRequest()};AdfXmlHttpDataTransferService.prototype._isSuspended=function(){return 0this._warningBeforeTimeout+2E3))return this._cancelAndRescheduleSessionTimeoutTimer(a,this._warningBeforeTimeout,this._newSessionURL),-1;if(this._isUserActiveOnClient(this._timeout-this._warningBeforeTimeout))return this._extendSessionInServer(),-1;this._timeoutWarningTimer=null;a=AdfPage.PAGE;this._timeoutTimer&&(a.cancelTimer(this._timeoutTimer), this._timeoutTimer=null);var b=AdfPage.PAGE.getLookAndFeel(),d;d=6E4<=this._warningBeforeTimeout?b.getTranslatedString("af_document.PRE_SESSION_TIMEOUT_MSG",Math.floor(this._warningBeforeTimeout/6E4)):b.getTranslatedString("af_document.PRE_SESSION_TIMEOUT_MSG_SECOND",this._warningBeforeTimeout/1E3);b=b.getTranslatedString("af_document.PRE_SESSION_TIMEOUT_CONFIRM_TITLE");null==b&&(b="Expiration Warning");var e=this.createCallback(this._handleSessionTimeoutWarningDialogOutcome);this._timeoutWindowState= AdfSessionTimeoutHelper.TimeoutWindowStates.LAUNCHED;this._preSessionTimeoutWarningTime=(new Date).getTime();a.__confirm(b,d,e,this._warningBeforeTimeout,!0);return-1}; AdfSessionTimeoutHelper.prototype._handleSessionTimeoutWarningDialogOutcome=function(a){this._timeoutWindowState=AdfSessionTimeoutHelper.TimeoutWindowStates.NONE;a.getOutcome()==AdfDialogEvent.OUTCOME_OK?this._extendSessionInServer():a.getOutcome()==AdfDialogEvent.OUTCOME_CANCEL&&(a=this._getTimeLeftToSessionTimeout(),a||(a=(new Date).getTime(),a=this._warningBeforeTimeout-(a-this._preSessionTimeoutWarningTime),this._preSessionTimeoutWarningTime=null),this._cancelAndRescheduleSessionTimeoutTimer(a, this._warningBeforeTimeout,this._newSessionURL))}; AdfSessionTimeoutHelper.prototype._showFinalSessionTimeoutAlertDialog=function(){var a=this._getTimeLeftToSessionTimeout();if(a&&0AdfCollections.indexOf(c,b)},getLeadSelection:function(a){var b=[],c=a.getSelection();if(!c)return b;for(i=0;i=c){k=AdfPage.PAGE.findComponent(m+e+d);if(null!=k)return k;p=!0}l=m.lastIndexOf(e);if(-1==l){k=AdfPage.PAGE.findComponent(d);if(null==k){k=m;break}return k}k=AdfPage.PAGE.findComponent(m);null!=k&&AdfUIComponent.__isNamingContainer(k.constructor)&&++h;k=m;m=m.substring(0,l);++n}if(!g){if(!b&&(0< c&&null!=k&&!p)&&(k=AdfPage.PAGE.findComponent(k+e+d),null!=k))return AdfLogger.LOGGER.warning("Component found using deprecated relative find of excessive number colons. Search string: "+f),k;if(0==c&&b&&(l=a.lastIndexOf(e),k=-1==l?AdfPage.PAGE.findComponent(d):AdfPage.PAGE.findComponent(a.substring(0,l)+e+d),null!=k))return AdfLogger.LOGGER.warning("Component found using deprecated relative find using the parent component. Search string: "+f),k}return null}; AdfUIComponent._trimAbsoluteScopedId=function(a,b){if(a&&!b)return a+":";for(var c=a.length;b--;)if(c=a.lastIndexOf(":",c-1),-1==c)return b&&AdfLogger.LOGGER.warning("Insufficient naming containers for expression:",a),"";return a.substring(0,c+1)}; AdfUIComponent._findAbsoluteComponent=function(a){var b=AdfPage.PAGE,c=b.findComponent(a);if(c)return c;for(var d={matchScopedId:a,matchComponent:null},c=a.lastIndexOf(":");-1!=c;){a=a.substring(0,c);if(c=b.findComponent(a))return c.visitChildren(AdfUIComponent._matchAbsoluteIdCallback,d,!1),d.matchComponent;c=a.lastIndexOf(":")}return null};AdfUIComponent.prototype.findComponentByLocator=function(a){return AdfUIComponent.__findComponentByLocator(a,this)}; AdfUIComponent.__findComponentByLocator=function(a,b){AdfAssert.assertNonEmptyString(a);return AdfPage.PAGE.findComponentByAbsoluteLocator(a)};AdfUIComponent._matchAbsoluteIdCallback=function(a){return this.matchScopedId==a.getAbsoluteId()?(this.matchComponent=a,2):0};AdfUIComponent.prototype.isShowing=function(){var a=this.getParent();return(a?a.isShowing():!0)&&this.getVisible()};AdfUIComponent.prototype.isEventRoot=function(){return!1}; AdfUIComponent.prototype.queueEvent=function(a){AdfAssert.assertPrototype(a,AdfBaseEvent);AdfPage.PAGE.queueEvent(a)}; AdfUIComponent.prototype.broadcast=function(a){AdfAssert.assertPrototype(a,AdfBaseEvent);var b=a.getSource();if(b==this){if(a.getDoesBubbles()?(a.getEventPhase()==AdfBaseEvent.CAPTURING_PHASE&&a.nextEventPhase(),a.getEventPhase()==AdfBaseEvent.AT_TARGET_PHASE&&(a.setCurrentTarget(b),this._deliverEvent(a),a.nextEventPhase()),a.getEventPhase()==AdfBaseEvent.BUBBLING_PHASE&&this._bubbleEvent(a)):this._deliverEvent(a),!a.isCanceled()){var b=this.getPeer(),c=!1;b&&(c=b.DispatchUncanceledComponentEvent(a)); !c&&!a.isCanceled()&&this.HandleEvent(a)}}else b=a.getEventPhase(),AdfAssert.assert(b==AdfBaseEvent.BUBBLING_PHASE,"invalid event phase"),b==AdfBaseEvent.BUBBLING_PHASE&&(this.HandleBubbledEvent(a),this._bubbleEvent(a))};AdfUIComponent.prototype.processPushData=function(a,b){AdfAssert.assert(void 0!==a);AdfAssert.assertNumber(b);return this.getPeer().processPushData(this,a,b)};AdfUIComponent.prototype.registerADSAccessibility=function(){this.getPeer().registerADSAccessibility(this)}; AdfUIComponent.prototype.clone=function(a){AdfAssert.assert(a&&a!==this._clientId);var b={};AdfCollections.copyInto(b,this._props);var c=this.getTypeName();return new window[c](a,b,this._componentUsageFlags)};AdfUIComponent.prototype.resizeNotify=function(a,b,c,d){var e=this.getPeer();e&&e.resizeNotify(this,a,b,c,d)};AdfUIComponent.prototype.scrollIntoView=function(a,b){var c=this.getPeer();c&&c.scrollIntoView(this,a,b)}; AdfUIComponent.prototype._deliverEvent=function(a){AdfAssert.assertPrototype(a,AdfBaseEvent);var b=this.getPeer();b&&b.DispatchComponentEvent(a);if(b=this._getClientListeners())(b=b[a.getType()])&&this._deliverEventToListeners(a,b)}; AdfUIComponent.prototype._deliverEventToListeners=function(a,b){AdfAssert.assertPrototype(a,AdfBaseEvent);if(b)if(AdfCollections.isArray(b))for(var c=b.length,d=0;dthis._scrollStart?-1*this._scrollStart:this._scrollStart;this._scrollTop=e};AdfScrollEvent.prototype.getScrollStart=function(){return this._scrollStart};AdfScrollEvent.prototype.getScrollTop=function(){return this._scrollTop}; function AdfSafariUIInputEvent(a,b,d){this.Init(a,b,d)}AdfObject.createSubclass(AdfSafariUIInputEvent,AdfDomUIInputEvent);AdfSafariUIInputEvent.prototype.clone=function(){var a=AdfSafariUIInputEvent.superclass.clone.call(this),b=a.Event;b&&(!b.target&&this.Event.target)&&(a._target=this.Event.target);return a};AdfSafariUIInputEvent.prototype.getNativeEventTarget=function(){return AdfSafariUIInputEvent.superclass.getNativeEventTarget.call(this)||this._target}; AdfSafariUIInputEvent.prototype.getOffsetX=function(){var a=this.getNativeEventTarget();return this.getClientX()-AdfAgent.AGENT.getElementLeft(a)};AdfSafariUIInputEvent.prototype.getOffsetY=function(){var a=this.getNativeEventTarget();return this.getClientY()-AdfAgent.AGENT.getElementTop(a)};AdfSafariUIInputEvent.prototype.getPageX=function(){var a=this.Event;return AdfAgent.AGENT.getDomWindow().scrollX+a.clientX+2}; AdfSafariUIInputEvent.prototype.getPageY=function(){var a=this.Event;return AdfAgent.AGENT.getDomWindow().scrollY+a.clientY+2}; function AdfDragSource(a,b){arguments.length&&this.Init(a,b)}AdfObject.createSubclass(AdfDragSource); AdfDragSource.prototype.Init=function(a,b){AdfDragSource.superclass.Init.call(this);void 0==a&&(a=b,void 0==a&&(a=AdfDnDContext.ACTION_COPY));AdfAssert.assertNumeric(a);AdfAssert.assert(a!=AdfDnDContext.ACTION_NONE,"allowed actions must be specified");AdfAssert.assert(0==(a&~AdfDnDContext.ACTIONS_ALL),"invalid allowedActions:"+a);void 0==b&&(b=a&AdfDnDContext.ACTION_COPY?AdfDnDContext.ACTION_COPY:a&AdfDnDContext.ACTION_MOVE?AdfDnDContext.ACTION_MOVE:AdfDnDContext.ACTION_LINK);AdfAssert.assert(0!= (a&b),"Default action not an allowed action");this._allowedActions=a;this._defaultAction=b;this._dragRecognizer=this.CreateDragRecognizer();this._component=null}; AdfDragSource.prototype.initiateDrag=function(a,b){AdfAssert.assertPrototype(a,AdfDnDContext);AdfAssert.assertPrototype(b,AdfUIInputEvent);var c=this.GetDragTransferable(b);if(c){AdfAssert.assertPrototype(c,AdfTransferable);var d=this.GetDragOffset(b);a.startDrag(b,c,this.getAllowedActions(),this.getDefaultAction(),this.GetDragOverFeedback(b),d.x,d.y,this.GetDefaultDragCursor());this._component.getPeer().initiateDrag(a,b)}}; AdfDragSource.prototype.getDragRecognizer=function(){if(!this._dragRecognizer){var a=this._component;AdfAssert.assert(null!=a,"Unexpected null component for drag recognizer.");var b=a.getPeer();AdfAssert.assert(null!=b,"Unexpected null peer for drag recognizer.");this._dragRecognizer=b.getDefaultDragRecognizer(a)}return this._dragRecognizer};AdfDragSource.prototype.getComponent=function(){return this._component};AdfDragSource.prototype.isAvailable=function(a){return null!=this.GetDragTransferable(a)}; AdfDragSource.prototype.dragDropEnd=function(a,b){AdfLogger.LOGGER.finer("dragDropEnd:",this," action:",b)};AdfDragSource.prototype.dragEnter=function(a){AdfLogger.LOGGER.finer("dragEnter:",this)};AdfDragSource.prototype.dragExit=function(a){AdfLogger.LOGGER.finer("dragExit:",this)};AdfDragSource.prototype.dragOver=function(a){AdfLogger.LOGGER.finest("dragOver:",this)};AdfDragSource.prototype.dropActionChanged=function(a){AdfLogger.LOGGER.finer("dropActionChanged:",this)}; AdfDragSource.prototype.toDebugString=function(){return AdfDragSource.superclass.toDebugString.call(this)+"[sourceComponent:"+this._component+"]"};AdfDragSource.prototype.GetDragTransferable=function(a){var b=this._component;return b.getPeer().getDragTransferable(b,a)};AdfDragSource.prototype.GetDefaultDragCursor=function(){return"auto"};AdfDragSource.prototype.getAllowedActions=function(){return this._allowedActions};AdfDragSource.prototype.getDefaultAction=function(){return this._defaultAction}; AdfDragSource.prototype.GetDragOverFeedback=function(a){var b=this._component;return b.getPeer().getDragOverFeedback(b,a)};AdfDragSource.prototype.applyDragReadyState=function(a){var b=this._component;return b.getPeer().applyDragReadyState(b,a)};AdfDragSource.prototype.clearDragReadyState=function(a){var b=this._component;return b.getPeer().clearDragReadyState(b,a)};AdfDragSource.prototype.applyDragSourceState=function(a){var b=this._component;return b.getPeer().applyDragSourceState(b,a)}; AdfDragSource.prototype.clearDragSourceState=function(a){var b=this._component;return b.getPeer().clearDragSourceState(b,a)};AdfDragSource.prototype.CreateDragRecognizer=function(){return null};AdfDragSource.prototype.GetDragOffset=function(a){return{x:a.getOffsetX(),y:a.getOffsetY()}};AdfDragSource.prototype.__setComponent=function(a){this._component=a}; function AdfDropTarget(){this.Init()}AdfObject.createSubclass(AdfDropTarget);AdfDropTarget.prototype.Init=function(){AdfDropTarget.superclass.Init.call(this);this._component=null};AdfDropTarget.prototype.getComponent=function(){return this._component};AdfDropTarget.prototype.toDebugString=function(){return AdfDropTarget.superclass.toDebugString.call(this)+"[source component:"+this._component+"]"}; AdfDropTarget.prototype.acceptDragEnter=function(a,b,c,d){AdfLogger.LOGGER.finer("dragEnter:",this);b=this._acceptDrag(a,b,c,d);b!=AdfDnDContext.ACTION_NONE&&this.AcceptedDragEnter(a,b,c,d);return b};AdfDropTarget.prototype.dragExit=function(a){AdfLogger.LOGGER.finer("dragExit:",this)};AdfDropTarget.prototype.acceptDragOver=function(a,b,c,d){AdfLogger.LOGGER.finest("dragOver:",this);return this._acceptDrag(a,b,c,d)}; AdfDropTarget.prototype.drop=function(a,b,c,d){AdfAssert.assert(b!=AdfDnDContext.ACTION_NONE);AdfLogger.LOGGER.finer("drop:",this);var e=this._component,f=e.getPeer().getPagePosition(e);c-=f.x;d-=f.y;(new AdfDropEvent(e,a.getDragSource(),a.getTransferable(),b,c,d)).queue();return AdfDnDContext.ACTION_NONE};AdfDropTarget.prototype.acceptDropActionChanged=function(a,b,c,d){AdfLogger.LOGGER.finest("dropActionChanged:",this," proposed:",b);return this._acceptDrag(a,b,c,d)}; AdfDropTarget.prototype.AcceptDrag=function(a,b,c,d,e){d=a.getDropTargetProperty("DropTarget:flavorAcceptance");null==d&&(d=this.CalculateFlavorAcceptance(a),a.setDropTargetProperty("DropTarget:flavorAcceptance",d));AdfAssert.assertBoolean(d);return d?c&b?c:b&AdfDnDContext.ACTION_MOVE?AdfDnDContext.ACTION_MOVE:b&AdfDnDContext.ACTION_COPY?AdfDnDContext.ACTION_COPY:b&AdfDnDContext.ACTION_LINK?AdfDnDContext.ACTION_LINK:AdfDnDContext.ACTION_NONE:AdfDnDContext.ACTION_NONE}; AdfDropTarget.prototype.CalculateFlavorAcceptance=function(a){var b=this.GetAllowedFlavors(a);AdfAssert.assertArrayOrNull(b);var c=b?b.length:0;a=a.getTransferable();for(var d=0;dAdfStrings.trim(a).length?this._summary:a};AdfFacesMessage.prototype.getSummary=function(){return this._summary};AdfFacesMessage.prototype.getMessageType=function(){return this._messageType};AdfFacesMessage.prototype.getSeverity=function(){return AdfFacesMessage.getSeverity(this._messageType)};AdfFacesMessage.prototype.setDetail=function(a){this._detail=a};AdfFacesMessage.prototype.setSummary=function(a){this._summary=a}; AdfFacesMessage.prototype.setMessageType=function(a){this._type=a};AdfFacesMessage.prototype.setSeverity=function(a){this._messageType=AdfFacesMessage.getType(a)};AdfFacesMessage.prototype.getProperty=function(a){if(null!=this._properties)return this._properties[a]};AdfFacesMessage.prototype.Init=function(a,b,c,d){AdfFacesMessage.superclass.Init.call(this,a,b,c,d);this._messageType=a;this._summary=b;this._detail=c;this._properties=d}; var AdfFocusUtils={containsFocus:function(a){for(var b=AdfPage.PAGE.getActiveDomElement();null!=b;){if(b==a)return!0;b=b.parentNode}return!1},focusElement:function(a){AdfAssert.assertDomElement(a);AdfPopupScopingUtils.scope(a);AdfFocusUtils._focusElementImpl(a)},isFocusChangePending:function(){return null!=AdfFocusUtils._delayFocusTimerId},focusFirstDocumentTabStop:function(){var a=AdfPage.PAGE.getDocument().body,a=AdfFocusUtils.getFirstTabStop(a,!0);null!=a&&0>a.offsetTop&&(a=AdfFocusUtils.getNextTabStop(a)); null!=a&&AdfFocusUtils.focusElement(a);return a},focusFirstTabStop:function(a,b){AdfAssert.assertDomElement(a);var d=AdfFocusUtils.getFirstTabStop(a,b);null!=d&&AdfFocusUtils.focusElement(d);return d},focusLastTabStop:function(a,b){AdfAssert.assertDomElement(a);var d=AdfFocusUtils.getLastTabStop(a,b);null!=d&&AdfFocusUtils.focusElement(d);return d},focusNextTabStop:function(a,b,d){d=AdfFocusUtils.getNextTabStop(a,b,d);d||(b||(b=a.ownerDocument.documentElement),d=AdfFocusUtils.getFirstTabStop(b,!0)); d&&AdfFocusUtils.focusElement(d);return d},focusPreviousTabStop:function(a,b,d){d=AdfFocusUtils.getPreviousTabStop(a,b,d);d||(b||(b=a.ownerDocument.documentElement),d=AdfFocusUtils.getLastTabStop(b,!0));d&&AdfFocusUtils.focusElement(d);return d},getFirstTabStop:function(a,b){return AdfDomUtils.getFirstElementMatch(a,b,AdfFocusUtils.isTabStop)},getLastTabStop:function(a,b){return AdfDomUtils.getLastElementMatch(a,b,AdfFocusUtils.isTabStop)},getNextTabStop:function(a,b,d){return AdfDomUtils.getNextElementMatch(a, b,d,AdfFocusUtils.isTabStop)},getPreviousTabStop:function(a,b){return AdfDomUtils.getPreviousElementMatch(a,b,AdfFocusUtils.isTabStop)},isTabStop:function(a){return null!=a&&-1AdfDomUtils.getTabIndex(a))return AdfDomUtils.FILTER_REJECT;if(!AdfFocusUtils._isFocusableType(a))return AdfDomUtils.FILTER_SKIP; AdfFocusUtils._setupContext(b);return AdfFocusUtils.isConnectedAndVisible(a,b)?AdfDomUtils.FILTER_ACCEPT:AdfDomUtils.FILTER_REJECT},_setupContext:function(a){if(a&&!a.positiveValue){var b=(new Date).getTime();a.positiveValue="y"+b;a.negativeValue="n"+b}},calculateCachedValue:function(a,b,d){if(b&&a&&d){a=AdfAgent.AGENT.getAttribute(a,d);if(a==b.positiveValue)return!0;if(a==b.negativeValue)return!1}},setCacheValue:function(a,b,d,e){b&&(a&&d&&void 0!=e)&&AdfAgent.AGENT.setExpandoProperty(a,d,e?b.positiveValue: b.negativeValue)},isConnectedAndVisible:function(a,b){AdfAssert.assertDomElement(a);var d=AdfAgent.AGENT.getDomDocument().documentElement,e=AdfFocusUtils.calculateCachedValue(a,b,"_afrFoc");if(void 0!=e)return e;if(!AdfFocusUtils._isVisible(a))return AdfFocusUtils.setCacheValue(a,b,"_afrFoc",!1),!1;if(a==d)return AdfFocusUtils.setCacheValue(a,b,"_afrFoc",!0),!0;d=null==a.parentNode||1!=a.parentNode.nodeType?!1:AdfFocusUtils.isConnectedAndVisible(a.parentNode,b);AdfFocusUtils.setCacheValue(a,b,"_afrFoc", d);return d},_isVisible:function(a,b){b||(b=AdfAgent.AGENT.getComputedStyle(a));return AdfFocusUtils._isDisplayNone(a,b)?!1:!AdfFocusUtils._isVisibilityHidden(a,b)},_isVisibilityHidden:function(a,b){b||(b=AdfAgent.AGENT.getComputedStyle(a));return"hidden"==b.visibility},_isDisplayNone:function(a,b){b||(b=AdfAgent.AGENT.getComputedStyle(a));return"none"==b.display&&("none"==a.style.display||!AdfPopupScopingUtils.isScopingContainer(a)||!AdfPopupScopingUtils.isOutOfScope(a))?!0:!1},_isFocusableType:function(a){AdfAssert.assertDomElement(a); var b=AdfDomUtils.getTabIndex(a);switch(a.nodeName.toLowerCase()){case "a":if(!a.href&&void 0==b)return!1;case "input":if("hidden"==a.type&&!0!=a.isContentEditable)return!1;case "area":case "body":case "button":case "frame":case "iframe":case "isindex":case "object":case "select":case "textarea":return!0;default:return-1<=b?!0:!1}},focusElementDelayed:function(a,b){AdfAssert.assertDomElement(a);AdfAssert.assertNumber(b);var d=AdfPage.PAGE,e=AdfFocusUtils._delayFocusTimerId;e&&d.cancelTimer(e);AdfFocusUtils._delayFocusTimerId= d.scheduleTimer(null,AdfFocusUtils._focusElementDelayedCallback,a,b)},_focusElementDelayedCallback:function(a){AdfFocusUtils._delayFocusTimerId=null;AdfFocusUtils._focusElementImpl(a)},_focusElementImpl:function(a){try{a.setActive&&11>AdfAgent.AGENT.getVersion()&&a.setActive(),a.focus()}catch(b){}},focusNextActiveDescendant:function(a,b,d){AdfAssert.assertDomElement(a);AdfAssert.assertDomElement(b);var e=AdfFocusUtils.getNextFocusableDescendant(a,b);if(!e)if(d)e=AdfFocusUtils.getFirstFocusableDescendant(a); else return e;e&&e!=b&&(b.setAttribute("tabIndex","-1"),e.setAttribute("tabIndex","0"),AdfFocusUtils.focusElement(e));return e},focusPreviousActiveDescendant:function(a,b,d){AdfAssert.assertDomElement(a);AdfAssert.assertDomElement(b);var e=AdfFocusUtils.getPreviousFocusableDescendant(a,b);if(!e)if(d)e=AdfFocusUtils.getLastFocusableDescendant(a);else return e;e&&e!=b&&(b.setAttribute("tabIndex","-1"),e.setAttribute("tabIndex","0"),AdfFocusUtils.focusElement(e));return e},setFirstActiveDescendant:function(a, b){AdfAssert.assertDomElement(a);var d=AdfFocusUtils.getFirstFocusableDescendant(a,b);d&&d.setAttribute("tabIndex","0");return d},setupCompositeWidget:function(a){AdfAssert.assertDomElement(a);for(var b={includeVisibilityHidden:!0,includeDisplayNone:!1,includeDisabled:!0},d=AdfFocusUtils.getFirstFocusableDescendant(a,b);d;)d.setAttribute("tabIndex","-1"),d=AdfFocusUtils.getNextFocusableDescendant(a,d,b);return AdfFocusUtils.setFirstActiveDescendant(a)},getFirstFocusableDescendant:function(a,b){AdfAssert.assertDomElement(a); return AdfDomUtils.getFirstFilteredElement(a,!1,AdfFocusUtils.isFocusableDescendant,b)},getLastFocusableDescendant:function(a,b){AdfAssert.assertDomElement(a);return AdfDomUtils.getLastFilteredElement(a,!1,AdfFocusUtils.isFocusableDescendant,b)},getNextFocusableDescendant:function(a,b,d){AdfAssert.assertDomElement(a);AdfAssert.assertDomElement(b);return AdfDomUtils.getNextFilteredElement(b,a,!0,AdfFocusUtils.isFocusableDescendant,d)},getPreviousFocusableDescendant:function(a,b,d){AdfAssert.assertDomElement(a); AdfAssert.assertDomElement(b);return AdfDomUtils.getPreviousFilteredElement(b,a,AdfFocusUtils.isFocusableDescendant,d)},getFirstUnmarkedTabstop:function(a){AdfAssert.assertDomElement(a);return AdfDomUtils.getFirstFilteredElement(a,!1,AdfFocusUtils.isUnmarkedTabstop)},isUnmarkedTabstop:function(a){var b=AdfLogger.LOGGER;if(null==a||1!=a.nodeType)return b.isLoggable(AdfLogger.FINE)&&b.fine("isUnmarkedTabstop: Null or not element node type"),AdfDomUtils.FILTER_REJECT;var d=AdfFocusUtils._isDisplayNone(a); if(d)return b.isLoggable(AdfLogger.FINE)&&b.fine("isUnmarkedTabstop: Node display none: "+d+", node tree: "+a.id+" "+a.nodeName),AdfDomUtils.FILTER_REJECT;if(a.attributes[AdfFocusUtils.DESCENDANT_FOCUSABLE])return b.isLoggable(AdfLogger.FINE)&&b.fine("isUnmarkedTabstop: Node is a marked tabstop: "+a.id+" "+a.nodeName),AdfDomUtils.FILTER_REJECT;if(AdfFocusUtils.isTabStop(a))return b.isLoggable(AdfLogger.FINE)&&b.fine("isUnmarkedTabstop: Found node that is an unmarked tabstop: "+a.id+" "+a.nodeName), AdfDomUtils.FILTER_ACCEPT;b.isLoggable(AdfLogger.FINE)&&b.fine("isUnmarkedTabstop: Node not a tabstop: "+a.id+" "+a.nodeName);return AdfDomUtils.FILTER_SKIP},isFocusableDescendant:function(a,b){var d=AdfLogger.LOGGER;b=null==b?{includeVisibilityHidden:!1,includeDisplayNone:!1,includeDisabled:!1}:b;if(null==a||1!=a.nodeType)return d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Skip and reject tree: Null or not element node type"),AdfDomUtils.FILTER_REJECT;var e=AdfAgent.AGENT.getComputedStyle(a); if(AdfFocusUtils._isVisibilityHidden(a,e)&&!Boolean(b.includeVisibilityHidden))return d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Skip and reject tree, Node is visibility hidden, node: "+a.id+" "+a.nodeName),AdfDomUtils.FILTER_REJECT;if(AdfFocusUtils._isDisplayNone(a,e)&&!Boolean(b.includeDisplayNone))return d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Skip and reject tree, Node is display none, node: "+a.id+" "+a.nodeName),AdfDomUtils.FILTER_REJECT;e=a.attributes[AdfFocusUtils.DESCENDANT_FOCUSABLE]; if(!e)return d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Skip, node not focusable, node: "+a.id+" "+a.nodeName),AdfDomUtils.FILTER_SKIP;if("true"==e.value)return d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Accept, node focusable TRUE, node: "+a.id+" "+a.nodeName),AdfDomUtils.FILTER_ACCEPT;if("false"==e.value)return d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Node focusable FALSE, node: "+a.id+" "+a.nodeName),Boolean(b.includeDisabled)?AdfDomUtils.FILTER_ACCEPT: AdfDomUtils.FILTER_REJECT;d.isLoggable(AdfLogger.FINE)&&d.fine("isFocusableDescendant? Skip, invalid value found: "+e.name+" "+e.value);return AdfDomUtils.FILTER_SKIP},DESCENDANT_FOCUSABLE:"data-afr-fcs"}; var AdfDomUtils={isVisible:function(a){return null==a?!1:"none"!=a.style.display},isInVisibleSubtree:function(a){if(null==a)return!1;for(;null!=a;){if(a.style&&"none"==a.style.display)return!1;a=a.parentNode}return!0},stripScripts:function(a){var b=a.childNodes;if(null!=b)for(var d=null,e=b.length-1;-1d?(b[0]==a&&e>d+1&&d++,b[d]):null},getFirstChildElement:function(a){return AdfDomUtils.getFirstChildNodeByType(a,1)},getElement:function(a){if(null==a)return null;for(;null!=a;a=a.parentNode)if(1==a.nodeType)return a;return null},getChildElements:function(a){a=a.childNodes;var b=[];if(a)for(var d=a.length,e=0;eb?g=-Math.min(l,10):5>e-b&&(g=Math.min(a.scrollWidth-e,10));k&&5>d?h=-Math.min(k,10):5>f-d&&(h=Math.min(a.scrollHeight-f,10));return g||h?{x:g,y:h}:null},removeAllNodes:function(a){for(var b=a.childNodes,d=b.length- 1;0<=d;d--)a.removeChild(b[d])},scrollRightBy:function(a,b){AdfDomUtils.setScrollLeft(a,a.scrollLeft+b)},setScrollLeft:function(a,b){b=Math.max(b,0);a.scrollLeft=Math.min(b,a.scrollWidth-a.clientWidth)},scrollDownBy:function(a,b){AdfDomUtils.setScrollTop(a,a.scrollTop+b)},setScrollTop:function(a,b){b=Math.max(b,0);a.scrollTop=Math.min(b,a.scrollHeight-a.clientHeight)},scrollChildIntoViewY:function(a){var b=a.offsetTop,d=a.offsetHeight,e=a.offsetParent;for(a=a.parentNode;a&&a.scrollHeight<=a.offsetHeight;)a.offsetParent!= e&&(b+=a.offsetTop,e=a.offsetParent),a=a.parentNode;null!=a&&(ba.scrollTop+a.clientHeight&&(a.scrollTop=b+d-a.clientHeight))},getNodeInfo:function(a){var b="";a&&(b+=a.nodeName,a.id&&(b+=" id\x3d"+a.id),a._afrpeerid&&(b+=" peer id\x3d"+a._afrpeerid),a.className&&(b+=" class\x3d"+a.className));return b},suppressActionLinkBrowserContextMenu:function(a){var b=AdfAgent.AGENT,d=a.getNativeEvent(),e=AdfDomUtils.getElement(b.getEventTarget(d)),f=e.getAttribute("href",2);if(null== f||""==f)a=a.getSource().getPeer().getDomElement().parentNode,e=AdfDomUtils.getParentWithAttr(a,e,"href"),null!=e&&(f=e.getAttribute("href",2));null!=f&&("#"==f||0==f.indexOf("javascript:"))&&b.preventDefault(d)},swapIcon:function(a,b){var d=AdfPage.PAGE.getLookAndFeel().getRawIcon(b),e=AdfAgent.AGENT;null!=d&&!e.isEqualIcon(a,d)&&(e.getPlatform()==AdfAgent.IE_PLATFORM&&a.tagName==d.tagName&&"IMG"==d.tagName?(a.src=d.src,a.alt=d.alt,a.title=a.title,a.border=d.border):(d=d.cloneNode(!0),e.replaceNode(d, a)))},_getCSSClassNameIndex:function(a,b){if(!a||"string"!==typeof a)return-1;if(b===a)return 0;var d=b.length,e=a.length;if(!a.indexOf)return-1;var f=a.indexOf(b);if(0<=f){var g=0==f||" "==a.charAt(f-1),h=f+d,h=h==e||" "==a.charAt(h);if(g&&h)return f;var k=a.lastIndexOf(b);if(k!=f)return g=a.charAt(k-1),h=k+d,h=h==e||" "==a.charAt(h),g&&h?k:a.indexOf(" "+b+" ")}return-1},addCSSClassName:function(a,b){AdfAssert.assertDomElement(a);var d=!1;if(null!=b){AdfAssert.assertString(b);var e=a.className;-1== AdfDomUtils._getCSSClassNameIndex(e,b)&&(a.className=e?b+" "+e:b,d=!0)}return d},removeCSSClassName:function(a,b){AdfAssert.assertDomElement(a);var d=!1;if(null!=b){var e=a.className,f=AdfDomUtils._getCSSClassNameIndex(e,b);-1!=f&&(d=f+b.length,f=0==f?null:e.substring(0,f),e=d==e.length?null:e.substring(d+1),a.className=null==f?null==e?"":e:null==e?f:f+e,d=!0)}return d},addOrRemoveCSSClassName:function(a,b,d){return(a?AdfDomUtils.addCSSClassName:AdfDomUtils.removeCSSClassName)(b,d)},containsCSSClassName:function(a, b){return null!=b?-1!=AdfDomUtils._getCSSClassNameIndex(a.className,b):!1},addInlineStyle:function(a,b,d){if(null!=b){var e=a.style.cssText;a.style.cssText=null==e||""==e?b:!0==d?e+";"+b:b+";"+e}},fillEmptyCell:function(a){AdfAssert.assertDomElement(a,"TD");if(null==a.firstChild){var b=a.ownerDocument.createElement("div");a.appendChild(b)}},getElementsByClassName:function(a,b){null==a&&(a=AdfAgent.AGENT.getDomDocument().documentElement);for(var d=a.getElementsByTagName("*"),e=d.length,f=[],g,h=0;h< e;h++)g=d[h],AdfDomUtils.containsCSSClassName(g,b)&&f.push(g);return f},setAccessibleState:function(a,b){var d=AdfAgent.AGENT,e=AdfRichUIPeer.CreateSubId(a.getClientId(),"state"),e=d.getElementById(e);AdfAssert.assertDomNode(e);null!=b?d.setTextContent(e," "+b+" "):d.setTextContent(e,"")},getFirstElementMatch:function(a,b,d,e){AdfAssert.assertFunction(d);AdfAssert.assertDomElement(a);if(!b&&d(a,e))return a;if(a.getElementsByTagName){a=a.getElementsByTagName("*");b=a.length;for(var f=0;f=e.getMessages(k[0]).length&&(l=!0):d&&(l=1>=h.length);var k=e.getDocument(),m;null!=h&&(m=k.createElement("table"),m.cellSpacing=0,m.cellPadding=0,m.summary="",m.setAttribute("role","presentation"),AdfMessageUtils._addMessageWrapper(k,m,null,h,null,l));var n;if(!d)for(var p in g){d=!1;if(p!=a){var q= g[p];if(null!=q){if(f.isGlassPaneVisible()){var r=e.findComponent(p);if(h=r.getPeer()){var s=h.getComponent();h.bind(r);(r=h.getDomElement())&&!f.isAboveTopGlassPane(r)&&(d=!0);s&&h.bind(s)}else d=!0}}else d=!0}else d=!0;d||(null==n&&(n=k.createElement("table"),n.summary="",n.setAttribute("role","presentation")),AdfMessageUtils._addMessageWrapper(k,n,p,q,q.title))}a=e.getLookAndFeel();e=k.createElement("div");AdfDomUtils.addCSSClassName(e,a.getStyleClass(AdfMessageUtils._MESSAGES_INTRO_STYLE_CLASS)); null==b?l||(e.appendChild(k.createTextNode(a.getTranslatedString(AdfMessageUtils._COMBINED_MESSAGES_INTRO_LABEL))),AdfDomUtils.addCSSClassName(e,a.getStyleClass(AdfMessageUtils._MESSAGES_INTRO_SEPARATOR_STYLE_CLASS))):(e.appendChild(k.createTextNode(b)),AdfDomUtils.addCSSClassName(e,a.getStyleClass(AdfMessageUtils._MESSAGES_INTRO_SEPARATOR_STYLE_CLASS)));b=k.createElement("div");b.appendChild(e);null!=m&&b.appendChild(m);null!=m&&(AdfDomUtils.addCSSClassName(m,a.getStyleClass(AdfMessageUtils._MESSAGES_LIST_PAGE_STYLE_CLASS)), AdfDomUtils.addCSSClassName(m,a.getStyleClass(AdfMessageUtils._CONTAINER_STYLE_CLASS)));null!=m&&null!=n&&(m=k.createElement("hr"),AdfDomUtils.addCSSClassName(m,a.getStyleClass(AdfMessageUtils._MESSAGE_GROUP_TYPE_SEPARATOR_STYLE_CLASS)),b.appendChild(m));null!=n&&(AdfDomUtils.addCSSClassName(n,a.getStyleClass(AdfMessageUtils._COMPONENT_LEVEL_CONTAINER_STYLE_CLASS)),b.appendChild(n));return b}; AdfMessageUtils.appendComponentMessageInlineDom=function(a,b){if(null!=b){var d=a,e=b.length,f=1n)n=q}e=AdfMessageUtils.getIcon(n,!1);d.appendChild(e);AdfDomUtils.addCSSClassName(d,h.getStyleClass(AdfMessageUtils._ICON_CELL_STYLE_CLASS));d=l.insertCell(-1);AdfDomUtils.addCSSClassName(d,h.getStyleClass(AdfMessageUtils._TYPE_STYLE_CLASS));e=AdfMessageUtils.getString(n,!1);m.setTextContent(d,e);l= k.insertRow(-1);d=l.insertCell(-1);d.colSpan=2;AdfDomUtils.addCSSClassName(d,h.getStyleClass(AdfMessageUtils._INTRO_STYLE_CLASS));e=h.getTranslatedString(AdfMessageUtils._COMPONENT_MESSAGES_INTRO_LABEL);m.setTextContent(d,e);l=k.insertRow(-1);d=l.insertCell(-1);m.setTextContent(d," ");d=l.insertCell(-1);AdfDomUtils.addCSSClassName(d,h.getStyleClass(AdfMessageUtils._MESSAGES_LIST_PAGE_STYLE_CLASS))}for(e=AdfFacesMessage.TYPE_FATAL;e>=AdfFacesMessage.TYPE_INFO;e--)if(n=b.sorted[e]){p=n.length;for(q= 0;q=AdfFacesMessage.TYPE_INFO;l--){var n=e.sorted[l];if(n)for(var p=n.length,q=0;qa.offsetWidth||Math.max(a.firstChild.offsetHeight,a.scrollHeight)>a.offsetHeight?!0:!1}; AdfOverflowSupport.getOverflowChildComponents=function(a,b){b||(b=[]);var d=AdfAgent.AGENT,e=a.getClientId(),f=AdfRichUIPeer.createSubId(e,"eoc"),e=AdfRichUIPeer.createSubId(e,"soc");(f=d.getElementById(f))&&d.getDescendantComponentsForNode(f,b);(f=d.getElementById(e))&&d.getDescendantComponentsForNode(f,b);return b}; AdfOverflowSupport.prototype.removeOverflowSupport=function(a){a||(this._startContainer&&AdfPage.PAGE.removeComponentsInSubtree(this._startContainer),this._endContainer&&AdfPage.PAGE.removeComponentsInSubtree(this._endContainer));delete this._peer;delete this._element;this._supportsStartOverflow()&&(delete this._startContainer,this._startIndicator&&(this._removeStartButtonCallbacks(),delete this._startIndicator,delete this._startHints),this._startContainerParent&&delete this._startContainerParent); this._supportsEndOverflow()&&(this._removeEndButtonCallbacks(),delete this._endIndicator,delete this._endContainer,delete this._endHints,this._endContainerParent&&delete this._endContainerParent);this._supportsDroplist()&&delete this._droplistContainer;this._removeSteps()};AdfOverflowSupport.prototype.createStep=function(){this._steps.push({elements:[],overflowElements:[],swapElements:[]});this._lastVisibleStep++}; AdfOverflowSupport.prototype.addElement=function(a){this._steps[this._steps.length-1].elements.push(a)};AdfOverflowSupport.prototype.addOverflowElement=function(a){this._steps[this._steps.length-1].overflowElements.push(a)};AdfOverflowSupport.prototype.createSwapPosition=function(a){var b=this._steps.length-1,d=a.ownerDocument,e=d.createElement("a");e.style.display="none";d=d.createElement("a");d.style.display="none";a.parentNode.insertBefore(d,a);this._steps[b].swapElements.push([a,d,e]);return e}; AdfOverflowSupport.prototype.addDropListElements=function(a){for(var b=this._droplistContainer,d=0;d=a||"vertical"==this._orientation&&50>=b?(this._hideAllSteps(), d=this._hasAvailableSpace(a,b)):(null==d&&(d=this._hasAvailableSpace(a,b)),d=this._binarySearchAdjustSteps(d,a,b,d?f:0,d?e:f),a=this._getAvailableWidth(),b=this._getAvailableHeight());d=this._showSteps(a,b,d);a=this._getAvailableWidth();b=this._getAvailableHeight();if(this._numberOfVisibleSteps()==e){if(d){this._hideOverflowButtons();this._closeOverflowPopups();return}this._hideOverflowButtons();if(d=this._hasAvailableSpace(a,b)){this._closeOverflowPopups();return}this._showOverflowButtons(!0)}this._hideSteps(a, b,d);this._useRovingTabIndex&&this._resetActiveDescendant()}};AdfOverflowSupport.prototype.removeAllItemsFromOverflow=function(){this._hideOverflowButtons();this._showAllSteps();this._closeOverflowPopups()};AdfOverflowSupport.prototype.focusNextChild=function(a){this._canMoveFocus(a)&&(a=AdfFocusUtils.focusNextActiveDescendant(a,this._activeDescendant,!0),AdfAssert.assertDomElement(a),this._activeDescendant=a)}; AdfOverflowSupport.prototype.focusPreviousChild=function(a){this._canMoveFocus(a)&&(a=AdfFocusUtils.focusPreviousActiveDescendant(a,this._activeDescendant,!0),AdfAssert.assertDomElement(a),this._activeDescendant=a)}; AdfOverflowSupport.prototype._canMoveFocus=function(a){AdfAssert.assert(this._useRovingTabIndex);AdfAssert.assertDomElement(a);AdfAssert.assertDomElement(this._activeDescendant);AdfAssert.assert("0"==this._activeDescendant.getAttribute("tabindex"),"The overflow popup's active descendant should have tabindex 0");this._activeDescendant||(AdfLogger.LOGGER.warning("Overflow has lost its assigned activeDescendant!"),this.resetActiveDescendant());return null!=this._activeDescendant}; AdfOverflowSupport.prototype.updateActiveDescendant=function(a){AdfAssert.assertDomElement(a);this._activeDescendant!=a&&(this._activeDescendant&&this._activeDescendant.setAttribute("tabIndex","-1"),a.setAttribute("tabIndex","0"),this._activeDescendant=a)};AdfOverflowSupport.prototype.isInOverflow=function(a){if(this._supportsEndOverflow()&&AdfDomUtils.isAncestor(this._endContainer,a))return"end";if(this._supportsStartOverflow()&&AdfDomUtils.isAncestor(this._startContainer,a))return"start"}; AdfOverflowSupport.prototype.showOverflowPopup=function(a){var b=this._peer,d=this._peer.getComponent();if(!b.isPopupVisible(d,"start"==a?AdfOverflowSupport._POPUP_ID_START:AdfOverflowSupport._POPUP_ID_END))"start"==a?(this._initializeStartContainerCallback(),this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_START,this._startContainer,this._startHints)):(this._initializeEndContainerCallback(),this._supportsDroplist()?this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,this._droplistContainer, this._endHints):this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,this._endContainer,this._endHints))};AdfOverflowSupport.prototype._closeOverflowPopups=function(){var a=this._peer,b=a.getComponent();a.isPopupVisible(b,AdfOverflowSupport._POPUP_ID_START)&&a.hidePopup(b,AdfOverflowSupport._POPUP_ID_START);a.isPopupVisible(b,AdfOverflowSupport._POPUP_ID_END)&&a.hidePopup(b,AdfOverflowSupport._POPUP_ID_END)}; AdfOverflowSupport.prototype._supportsStartOverflow=function(){return"start"==this._type||"both"==this._type||"droplist"==this._type};AdfOverflowSupport.prototype._supportsEndOverflow=function(){return"end"==this._type||"both"==this._type||"droplist"==this._type};AdfOverflowSupport.prototype._supportsBothOverflow=function(){return"both"==this._type||"droplist"==this._type};AdfOverflowSupport.prototype._supportsDroplist=function(){return"droplist"==this._type}; AdfOverflowSupport.prototype._getElement=function(a,b){var d=AdfRichUIPeer.CreateSubId(a,b);return AdfAgent.AGENT.getElementById(d)}; AdfOverflowSupport.prototype._initStartButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._startIndicator,d=this._createOverflowPopupHints();d[AdfDhtmlPopupHints.ALIGN_ELEMENT]=b;d[AdfRichPopup.HINT_ALIGN]="before"==this._position?AdfRichPopup.ALIGN_BEFORE_START:AdfRichPopup.ALIGN_AFTER_START;this._startHints=d;d=this._startShowCall=this.createCallback(this._startOverflowButtonPressed);a.addBubbleEventListener(b,"mousedown",d);a.addBubbleEventListener(b,"keydown",d);this._startButtonMouseUpCall= this.createCallback(this._startOverflowButtonMouseUp);a.addBubbleEventListener(b,"mouseup",this._startButtonMouseUpCall);this._startButtonMouseOutCall=this.createCallback(this._startOverflowButtonMouseOut);a.addBubbleEventListener(b,"mouseout",this._startButtonMouseOutCall)}; AdfOverflowSupport.prototype._initEndButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._endIndicator,d=this._createOverflowPopupHints();d[AdfDhtmlPopupHints.ALIGN_ELEMENT]=this._endIndicator;d[AdfRichPopup.HINT_ALIGN]="before"==this._position?AdfRichPopup.ALIGN_BEFORE_END:AdfRichPopup.ALIGN_AFTER_END;this._endHints=d;d=this._endShowCall=this.createCallback(this._endOverflowButtonPressed);a.addBubbleEventListener(b,"mousedown",d);a.addBubbleEventListener(b,"keydown",d);this._endButtonMouseUpCall= this.createCallback(this._endOverflowButtonMouseUp);a.addBubbleEventListener(b,"mouseup",this._endButtonMouseUpCall);this._endButtonMouseOutCall=this.createCallback(this._endOverflowButtonMouseOut);a.addBubbleEventListener(b,"mouseout",this._endButtonMouseOutCall)}; AdfOverflowSupport.prototype._createOverflowPopupHints=function(){var a={};a[AdfDhtmlPopupHints.AUTODISMISS]=AdfDhtmlPopupHints.AUTODISMISS_ALWAYS;a[AdfDhtmlPopupHints.FOCUS]=!0;a[AdfDhtmlPopupHints.TYPE]=AdfDhtmlPopupHints.TYPE_MENU;a[AdfDhtmlPopupHints.CLOSE_ON_ESCAPE]=!0;return a}; AdfOverflowSupport.prototype._startOverflowButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type,e=a.keyCode;"keydown"==d&&e!=AdfKeyStroke.ENTER_KEY&&e!=AdfKeyStroke.ARROWDOWN_KEY&&e!=AdfKeyStroke.SPACE_KEY||("mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG||(this._initializeStartContainerCallback(),this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_START,this._startContainer,this._startHints),"mousedown"==d&&(d=b.getEventTarget(a),this._setDepressedStyle(d,!0))),b.eatEvent(a))}; AdfOverflowSupport.prototype._initializeStartContainerCallback=function(){null==this._hideStartContainerCallback&&(this._hideStartContainerCallback=this.createCallback(this._hideStartContainer),AdfObject.ensureClassInitialization(AdfDhtmlPopupWindow),this._startHints[AdfDhtmlPopupHints.CLOSE_HANDLER]=this._hideStartContainerCallback,this._startContainerParent=this._startContainer.parentNode)}; AdfOverflowSupport.prototype._startOverflowButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfOverflowSupport.prototype._startOverflowButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)}; AdfOverflowSupport.prototype._endOverflowButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type,e=a.keyCode;"keydown"==d&&e!=AdfKeyStroke.ENTER_KEY&&e!=AdfKeyStroke.ARROWDOWN_KEY&&e!=AdfKeyStroke.SPACE_KEY||("mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG||(this._initializeEndContainerCallback(),this._supportsDroplist()?this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END,this._droplistContainer,this._endHints):this._overflowButtonPressed(AdfOverflowSupport._POPUP_ID_END, this._endContainer,this._endHints),"mousedown"==d&&(d=b.getEventTarget(a),this._setDepressedStyle(d,!0))),b.eatEvent(a))};AdfOverflowSupport.prototype._initializeEndContainerCallback=function(){null==this._hideEndContainerCallback&&(this._hideEndContainerCallback=this.createCallback(this._hideEndContainer),AdfObject.ensureClassInitialization(AdfDhtmlPopupWindow),this._endHints[AdfDhtmlPopupHints.CLOSE_HANDLER]=this._hideEndContainerCallback,this._endContainerParent=this._endContainer.parentNode)}; AdfOverflowSupport.prototype._endOverflowButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfOverflowSupport.prototype._endOverflowButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfOverflowSupport.prototype._setDepressedStyle=function(a,b){var d=AdfOverflowSupport._DEPRESSED_STYLE_CLASS;b?AdfDomUtils.addCSSClassName(a,d):AdfDomUtils.removeCSSClassName(a,d)}; AdfOverflowSupport.prototype._overflowButtonPressed=function(a,b,d){var e=this._peer,f=this._peer.getComponent();e.isPopupVisible(f,a)?this._peer.hidePopup(f,a):(this._useRovingTabIndex&&this._resetActiveDescendant(b),this._peer.showPopup(f,b,d,a))};AdfOverflowSupport.prototype._hideStartContainer=function(){this._startContainer&&this._startContainerParent.appendChild(this._startContainer)}; AdfOverflowSupport.prototype._hideEndContainer=function(){this._supportsDroplist()&&this._droplistContainer?this._droplistContainer.parentNode.appendChild(this._droplistContainer):this._endContainer&&this._endContainerParent.appendChild(this._endContainer)}; AdfOverflowSupport.prototype._handleResizeTypeBoth=function(a,b){this._hideOverflowButtons();this._setActiveStep();var d=this._hasAvailableSpace(a,b);this._showSteps(a,b,d);this._showOverflowButtons();a=this._getAvailableWidth();b=this._getAvailableHeight();for(d=this._hasAvailableSpace(a,b);this._hideSteps(a,b,d);)this._showOverflowButtons(),d=this._hasAvailableSpace(a,b);this._numberOfVisibleSteps()==this._steps.length&&this._closeOverflowPopups()}; AdfOverflowSupport.prototype._setActiveStep=function(){for(var a=this._steps,b=0;b=g)return a;for(var g=Math.ceil(g/2),h=0;h=e||-1==this._firstVisibleStep?this._hideStartStep():this._hideEndStep()}e=!0;d=this._hasAvailableSpace(a,b)}return e}; AdfOverflowSupport.prototype._isActiveStepInOverflow=function(){return this._supportsBothOverflow()?this._activeStepthis._lastVisibleStep:!1};AdfOverflowSupport.prototype._getAvailableWidth=function(){return this._element.offsetWidth+3};AdfOverflowSupport.prototype._getAvailableHeight=function(){return this._element.offsetHeight+5}; AdfOverflowSupport.prototype._hasAvailableSpace=function(a,b){var d=Math.max(this._element.firstChild.offsetWidth,this._element.scrollWidth),e=AdfAgent.getAgent();AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(e.getPlatform()==AdfAgent.IE_PLATFORM&&8>e.getVersion())&&(d=this._element.scrollWidth);e=Math.max(this._element.firstChild.offsetHeight,this._element.scrollHeight)<=b;return d<=a&&e}; AdfOverflowSupport.prototype._showOneStep=function(){"end"==this._type?this._showEndStep():"start"==this._type&&this._showStartStep()};AdfOverflowSupport.prototype._showStartStep=function(){this._showStep(this._steps[this._firstVisibleStep-1],!0);this._firstVisibleStep--};AdfOverflowSupport.prototype._showEndStep=function(){this._showStep(this._steps[this._lastVisibleStep+1]);this._lastVisibleStep++}; AdfOverflowSupport.prototype._hideOneStep=function(){"end"==this._type?this._hideEndStep():"start"==this._type&&this._hideStartStep()};AdfOverflowSupport.prototype._hideStartStep=function(){this._hideStep(this._steps[this._firstVisibleStep],!0);this._firstVisibleStep++};AdfOverflowSupport.prototype._hideEndStep=function(){this._hideStep(this._steps[this._lastVisibleStep]);this._lastVisibleStep--}; AdfOverflowSupport.prototype._showStep=function(a,b){this._showElements(a.elements);this._hideOverflowElements(a.overflowElements,b);this._swapElements(a.swapElements,!0)};AdfOverflowSupport.prototype._hideStep=function(a,b){this._hideElements(a.elements);this._showOverflowElements(a.overflowElements,b);this._swapElements(a.swapElements)};AdfOverflowSupport.prototype._hideElements=function(a){for(var b=a.length,d=0;d= d}; AdfConveyorBeltSupport.prototype.removeConveyorBeltSupport=function(){var a=AdfAgent.AGENT,b=this._startIndicator;a.removeBubbleEventListener(b,"mousedown",this._startButtonCall);a.removeBubbleEventListener(b,"keydown",this._startButtonCall);a.removeBubbleEventListener(b,"mouseup",this._startButtonMouseUpCall);a.removeBubbleEventListener(b,"mouseout",this._startButtonMouseOutCall);b=this._endIndicator;a.removeBubbleEventListener(b,"mousedown",this._endButtonCall);a.removeBubbleEventListener(b,"keydown", this._endButtonCall);a.removeBubbleEventListener(b,"mouseup",this._endButtonMouseUpCall);a.removeBubbleEventListener(b,"mouseout",this._endButtonMouseOutCall);b=this._droplistIndicator;a.removeBubbleEventListener(b,"mousedown",this._droplistShowCall);a.removeBubbleEventListener(b,"keydown",this._droplistShowCall);a.removeBubbleEventListener(b,"mouseup",this._droplistButtonMouseUpCall);a.removeBubbleEventListener(b,"mouseout",this._droplistButtonMouseOutCall);delete this._peer;delete this._container; delete this._startIndicator;delete this._endIndicator;delete this._contentContainer;delete this._itemOffsetLeftArray;delete this._selectedItem;delete this._contentWidth;delete this._initialRender;delete this._firstItemDisplayed;delete this._droplistIndicator;delete this._droplistContainer;delete this._otherCBSupport;delete this._hideDroplistContainerCallback;delete this._droplistHints;delete this._conveyorBeltButtonWidth;delete this._keepRollingLeft;delete this._keepRollingRight}; AdfConveyorBeltSupport.prototype.registerAdditionalConveyorBeltSupport=function(a){this._otherCBSupport=a}; AdfConveyorBeltSupport.prototype.handleResize=function(){var a=this._isConveyorBeltNeeded(),b=this._areConveyorBeltIconsDisplayed();a?(b||(this._setButtonDisplay(!0),this._initialRender&&(this._firstItemDisplayed=this._calculateFirstItemToDisplay()),this._rollConveyor(!0)),this._setButtonState()):(this._setButtonDisplay(!1),AdfAgent.AGENT.scrollToPos(this._contentContainer,0));this._initialRender&&(this._initialRender=!1)}; AdfConveyorBeltSupport.prototype.addDropListElements=function(a){for(var b=this._droplistContainer,d=0;d=a};AdfConveyorBeltSupport.prototype._areConveyorBeltIconsDisplayed=function(){return AdfDomUtils.containsCSSClassName(this._container,"p_AFConveyorBelt")}; AdfConveyorBeltSupport.prototype._setButtonDisplay=function(a){a?AdfDomUtils.addCSSClassName(this._container,"p_AFConveyorBelt"):AdfDomUtils.removeCSSClassName(this._container,"p_AFConveyorBelt")}; AdfConveyorBeltSupport.prototype._setButtonState=function(){this._doesContentRollLeft()?(AdfDomUtils.removeCSSClassName(this._startIndicator,AdfRichUIPeer.DISABLED_STYLECLASS),this._startIndicator.removeAttribute("aria-disabled")):(AdfDomUtils.addCSSClassName(this._startIndicator,AdfRichUIPeer.DISABLED_STYLECLASS),this._startIndicator.setAttribute("aria-disabled","true"));this._doesContentRollRight()?this._firstItemDisplayed+1this._contentContainer.scrollLeft;a=this._contentWidth-this._contentContainer.scrollLeft;b=AdfConveyorBeltSupport._getInnerWidth(this._container);return a>b+10}return this._contentContainer&&0b+10}; AdfConveyorBeltSupport.prototype._calculateFirstItemToDisplay=function(){if(void 0==this._selectedItem)return this._firstItemDisplayed;if(this._selectedItem<=this._firstItemDisplayed)return this._selectedItem;var a=this._itemOffsetLeftArray[this._selectedItem],b=AdfDomUtils.getChildElementByPosition(this._contentContainer,1,this._selectedItem),b=a+b.offsetWidth,d=AdfConveyorBeltSupport._getInnerWidth(this._container),e=d;if(b-a>e)return this._selectedItem;for(a=1;a<=this._firstItemDisplayed;a++)e+= this._itemOffsetLeftArray[a]-this._itemOffsetLeftArray[a-1];if(b<=e)return this._firstItemDisplayed;e=d;for(a=1;a=this._itemOffsetLeftArray.length?this._itemOffsetLeftArray.length-1:this._firstItemDisplayed+1,this._rollConveyor()):this._stopRollingRight()}; AdfConveyorBeltSupport.prototype._rollMultipleRight=function(){AdfAssert.assert(null!=this._otherCBSupport,"Method should only be called if there are multiple conveyors.");this._rollRight();this._otherCBSupport._rollRight()};AdfConveyorBeltSupport.prototype._stopRollingLeft=function(){this._keepRollingLeft=!1;this._rollLeftTimer&&clearInterval(this._rollLeftTimer);this._rollLeftTimer=null}; AdfConveyorBeltSupport.prototype._stopRollingRight=function(){this._keepRollingRight=!1;this._rollRightTimer&&clearInterval(this._rollRightTimer);this._rollRightTimer=null}; AdfConveyorBeltSupport.prototype._initStartButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._startIndicator;this._startButtonCall=this.createCallback(this._startConveyorBeltButtonPressed);a.addBubbleEventListener(b,"mousedown",this._startButtonCall);this._startButtonMouseUpCall=this.createCallback(this._startConveyorBeltButtonMouseUp);a.addBubbleEventListener(b,"mouseup",this._startButtonMouseUpCall);this._startButtonMouseOutCall=this.createCallback(this._startConveyorBeltButtonMouseOut); a.addBubbleEventListener(b,"mouseout",this._startButtonMouseOutCall)}; AdfConveyorBeltSupport.prototype._initEndButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._endIndicator;this._endButtonCall=this.createCallback(this._endConveyorBeltButtonPressed);a.addBubbleEventListener(b,"mousedown",this._endButtonCall);this._endButtonMouseUpCall=this.createCallback(this._endConveyorBeltButtonMouseUp);a.addBubbleEventListener(b,"mouseup",this._endButtonMouseUpCall);this._endButtonMouseOutCall=this.createCallback(this._endConveyorBeltButtonMouseOut);a.addBubbleEventListener(b, "mouseout",this._endButtonMouseOutCall)}; AdfConveyorBeltSupport.prototype._startConveyorBeltButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type;if(!("mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG)){var e=b.getEventTarget(a);AdfDomUtils.containsCSSClassName(e,AdfRichUIPeer.DISABLED_STYLECLASS)||("mousedown"==d&&this._setDepressedStyle(e,!0),this._keepRollingLeft=!0,this._otherCBSupport?this._rollMultipleLeft():this._rollLeft(),AdfPage.PAGE.isAnimationEnabled()||(d=this._otherCBSupport?this.createCallback(this._rollMultipleLeft): this.createCallback(this._rollLeft),this._rollLeftTimer=setInterval(d,200)))}b.eatEvent(a)};AdfConveyorBeltSupport.prototype._startConveyorBeltButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1);this._stopRollingLeft()};AdfConveyorBeltSupport.prototype._startConveyorBeltButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1);this._stopRollingLeft()}; AdfConveyorBeltSupport.prototype._endConveyorBeltButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type;if(!("mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG)){var e=b.getEventTarget(a);AdfDomUtils.containsCSSClassName(e,AdfRichUIPeer.DISABLED_STYLECLASS)||("mousedown"==d&&this._setDepressedStyle(e,!0),this._keepRollingRight=!0,this._otherCBSupport?this._rollMultipleRight():this._rollRight(),AdfPage.PAGE.isAnimationEnabled()||(d=this._otherCBSupport?this.createCallback(this._rollMultipleRight): this.createCallback(this._rollRight),this._rollRightTimer=setInterval(d,200)))}b.eatEvent(a)};AdfConveyorBeltSupport.prototype._endConveyorBeltButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1);this._stopRollingRight()};AdfConveyorBeltSupport.prototype._endConveyorBeltButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1);this._stopRollingRight()}; AdfConveyorBeltSupport.prototype._setDepressedStyle=function(a,b){var d=AdfConveyorBeltSupport._DEPRESSED_STYLE_CLASS;b?AdfDomUtils.addCSSClassName(a,d):AdfDomUtils.removeCSSClassName(a,d)}; AdfConveyorBeltSupport.prototype._initDroplistButtonEventHandling=function(){var a=AdfAgent.AGENT,b=this._droplistIndicator,d=this._createConveyorBeltPopupHints();d[AdfDhtmlPopupHints.ALIGN_ELEMENT]=b;d[AdfRichPopup.HINT_ALIGN]=AdfRichPopup.ALIGN_AFTER_END;this._droplistHints=d;d=this._droplistShowCall=this.createCallback(this._droplistButtonPressed);a.addBubbleEventListener(b,"mousedown",d);a.addBubbleEventListener(b,"keydown",d);this._droplistButtonMouseUpCall=this.createCallback(this._droplistButtonMouseUp); a.addBubbleEventListener(b,"mouseup",this._droplistButtonMouseUpCall);this._droplistButtonMouseOutCall=this.createCallback(this._droplistButtonMouseOut);a.addBubbleEventListener(b,"mouseout",this._droplistButtonMouseOutCall)}; AdfConveyorBeltSupport.prototype._createConveyorBeltPopupHints=function(){var a={};a[AdfDhtmlPopupHints.AUTODISMISS]=AdfDhtmlPopupHints.AUTODISMISS_ALWAYS;a[AdfDhtmlPopupHints.FOCUS]=!0;a[AdfDhtmlPopupHints.TYPE]=AdfDhtmlPopupHints.TYPE_MENU;a[AdfDhtmlPopupHints.CLOSE_ON_ESCAPE]=!0;return a}; AdfConveyorBeltSupport.prototype._droplistButtonPressed=function(a){var b=AdfAgent.AGENT,d=a.type,e=a.keyCode;if(!("keydown"==d&&e!=AdfKeyStroke.ENTER_KEY&&e!=AdfKeyStroke.ARROWDOWN_KEY)){if(!("mousedown"==d&&a.button&&a.button!=AdfUIInputEvent.LEFT_BUTTON_FLAG)){null==this._hideDroplistContainerCallback&&(this._hideDroplistContainerCallback=this.createCallback(this._hideDroplistContainer),AdfObject.ensureClassInitialization(AdfDhtmlPopupWindow),this._droplistHints[AdfDhtmlPopupHints.CLOSE_HANDLER]= this._hideDroplistContainerCallback,this._droplistHints[AdfDhtmlPopupHints.TITLE]=AdfAgent.AGENT.getEventTarget(a).title,this._droplistContainerParent=this._droplistContainer.parentNode);var e=this._peer,f=e.getComponent(),g=AdfConveyorBeltSupport._DROPLIST_ID;e.isPopupVisible(f,g)?e.hidePopup(f,g):e.showPopup(f,this._droplistContainer,this._droplistHints,g);"mousedown"==d&&(d=b.getEventTarget(a),this._setDepressedStyle(d,!0))}b.eatEvent(a)}}; AdfConveyorBeltSupport.prototype._droplistButtonMouseUp=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfConveyorBeltSupport.prototype._droplistButtonMouseOut=function(a){a=AdfAgent.AGENT.getEventTarget(a);this._setDepressedStyle(a,!1)};AdfConveyorBeltSupport.prototype._hideDroplistContainer=function(){this._droplistContainer&&this._droplistContainerParent.appendChild(this._droplistContainer)}; function AdfDhtmlPopupWindowFactory(){this.Init()}AdfObject.createSubclass(AdfDhtmlPopupWindowFactory); AdfDhtmlPopupWindowFactory.createPopup=function(a){AdfAssert.assert(a,"Cannot create a new popup element without hints");AdfPage.PAGE.__ensureCoreBackgroundLoaded();return a[AdfDhtmlPopupHints.TYPE]==AdfDhtmlPopupHints.TYPE_MENU?new AdfDhtmlPopupMenu:a[AdfDhtmlPopupHints.TYPE]==AdfDhtmlPopupHints.TYPE_NOTEWINDOW?new AdfDhtmlNoteWindowPopupSelector(a[AdfDhtmlPopupHints.AUTODISMISS]):a[AdfDhtmlPopupHints.TYPE]==AdfDhtmlPopupHints.TYPE_DIALOG?new AdfDhtmlSimpleFloat:a[AdfDhtmlPopupHints.TYPE]==AdfDhtmlPopupHints.TYPE_INLINESELECTOR? new AdfDhtmlPopupSelector:a[AdfDhtmlPopupHints.TYPE]==AdfDhtmlPopupHints.TYPE_LOVCOMBOBOX?new AdfInputComboboxListOfValuesWindow:a[AdfDhtmlPopupHints.TYPE]==AdfDhtmlPopupHints.TYPE_LAYER?new AdfDhtmlPopupLayer:a[AdfDhtmlPopupHints.AUTODISMISS]?new AdfDhtmlPopupSelector:new AdfDhtmlSimpleFloat}; function AdfDhtmlElementAnimator(a,b,d,e,f,g,h){this.Init(a,b,d,e,f,g,h)}AdfObject.createSubclass(AdfDhtmlElementAnimator);AdfDhtmlElementAnimator.prototype.Init=function(a,b,d,e,f,g,h){AdfDhtmlElementAnimator.superclass.Init.call(this);this._itemState=a;this._duringAnimate=b;this._afterAnimate=d;this._callbackParameters=e;this._component=f;this._startTime=(new Date).getTime();this._frameMethod=g;this._frameCount=h}; AdfDhtmlElementAnimator.prototype.stop=function(){this._stopped=!0;window.clearInterval(this._intervalID);var a=this._callbackParameters;this._destroy();return a}; AdfDhtmlElementAnimator.animate=function(a,b,d,e,f,g,h){for(var k=AdfAgent.AGENT,l=d.length,m=Array(l),n=0;n=e-1&&(this._performAfterAnimate=g=!0);for(var h=0;hf)return b;for(var g=Array(f-d),h=0,d=d-1,k=c[d][0],l=0;l=AdfLogger.WARNING&&AdfLogger.LOGGER.logErrorAsWarning(b," initializing "+this+" on "+a)}}; AdfInitializationBehavior.prototype.Init=function(a){AdfInitializationBehavior.superclass.Init.call(this);AdfAssert.assertString(a);this._js=a}; function AdfSelectItem(a,b,c,d){this.Init(a,b,c,d)}AdfObject.createSubclass(AdfSelectItem);AdfSelectItem.prototype.Init=function(a,b,c,d){AdfSelectItem.superclass.Init.call(this);AdfAssert.assertStringOrNull(a);AdfAssert.assertStringOrNull(b);c&&(AdfAssert.assertBoolean(c),this._disabled=c);d&&(AdfAssert.assertBoolean(d),this._noSelOpt=d);null!=a&&(this._value=a);null!=b&&(this._label=b)}; AdfSelectItem.InitClass=function(){var a=this.prototype;a._value=null;a._label=null;a._disabled=!1;a._noSelOpt=!1};AdfSelectItem.prototype.getValue=function(){return this._value};AdfSelectItem.prototype.getLabel=function(){return this._label};AdfSelectItem.prototype.isDisabled=function(){return this._disabled};AdfSelectItem.prototype.isNoSelectionOption=function(){return this._noSelOpt};AdfSelectItem.prototype.setValue=function(a){AdfAssert.assertStringOrNull(a);this._value=a}; AdfSelectItem.prototype.setLabel=function(a){AdfAssert.assertStringOrNull(a);this._label=a};AdfSelectItem.prototype.setDisabled=function(a){AdfAssert.assertBoolean(a);this._disabled=a};AdfSelectItem.prototype.setNoSelectionOption=function(a){AdfAssert.assertBoolean(a);this._noSelOpt=a}; function AdfRangeValue(a,b){this.Init(a,b)}AdfObject.createSubclass(AdfRangeValue);AdfRangeValue.prototype.equals=function(a){return this._minimum==a._minimum&&this._maximum==a._maximum?!0:!1};AdfRangeValue.prototype.getMinimum=function(){return this._minimum};AdfRangeValue.prototype.getMaximum=function(){return this._maximum};AdfRangeValue.prototype.setMinimum=function(a){AdfAssert.assertNumberOrNull(a);this._minimum=a}; AdfRangeValue.prototype.setMaximum=function(a){AdfAssert.assertNumberOrNull(a);this._maximum=a};AdfRangeValue.prototype.toString=function(){return this._minimum+","+this._maximum};AdfRangeValue.InitClass=function(){var a=this.prototype;a._minimum=null;a._maximum=null};AdfRangeValue.prototype.Init=function(a,b){AdfRangeValue.superclass.Init.call(this);AdfAssert.assertNumberOrNull(a);AdfAssert.assertNumberOrNull(b);if(a>b){var c=a;a=b;b=c}null!=a&&(this._minimum=a);null!=b&&(this._maximum=b)}; AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlInlineFramePeer");AdfDhtmlInlineFramePeer.InitSubclass=function(){var a=[];a._fastPoll=!1;a._timerId=void 0;this._iframeIds=a;AdfRichUIPeer.addComponentPropertyChanges(this,AdfRichInlineFrame.SOURCE);this._LOAD_EVENT_TYPE="inlineFrameLoad"}; AdfDhtmlInlineFramePeer.prototype.InitDomElement=function(a,b){AdfDhtmlInlineFramePeer.superclass.InitDomElement.call(this,a,b);AdfPage.PAGE.registerLoadingComponent(a);var d=this.__getIframe(b),e=d.getAttribute("_src");if(null!=e){AdfPage.PAGE.__perfTimings(!1,!1,!0,"GET request sent for iFrame. Source is: ",e);var f=AdfAgent.AGENT,g=f.getPlatform()==AdfAgent.WEBKIT_PLATFORM;!g||g&&535.19<=f.getVersion()?(d.setAttribute("src",e),d.removeAttribute("_src")):AdfDhtmlInlineFramePeer._replaceIframe(d)}}; AdfDhtmlInlineFramePeer.prototype.GetReadyState=function(){var a=this.__getIframe();if(a){AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: Frame dom is present");try{var b=a.contentWindow;if("complete"===b.document.readyState){AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: ","Determine inner document is ADF or not");var d=b.AdfPage;if(d){var e=d.PAGE;if(e&&e.isSynchronizedWithServer&&e.isSynchronizedWithServer())return AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: inner ADF page ready"), AdfUIComponent.STATE_COMPLETE;AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: inner ADF page not ready");return AdfUIComponent.STATE_LOADING}AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: Non ADF page ready");return AdfUIComponent.STATE_COMPLETE}AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: inner document not yet ready");return AdfUIComponent.STATE_LOADING}catch(f){return AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: Security exception.", " Document from different domain, nothing more to do"),AdfUIComponent.STATE_COMPLETE}}AdfLogger.LOGGER.fine("AdfDhtmlInlineFramePeer.GetReadyState: inlineFrame's dom is not ready");return AdfUIComponent.STATE_LOADING}; AdfDhtmlInlineFramePeer._replaceIframe=function(a){var b=AdfAgent.AGENT,d=a.getAttribute("_src"),e=AdfDomUtils.isVisible(a);AdfDomUtils.setVisible(a,!1);a.removeAttribute("_src");a.removeAttribute("src");var f=b.cloneNode(a);a.onload="void(0);";b.elementsRemoved(a);a.parentNode.replaceChild(f,a);f.setAttribute("src",d);b.elementsAdded(f);AdfDomUtils.setVisible(f,e)}; AdfDhtmlInlineFramePeer.prototype.ComponentSourceChanged=function(a,b,d,e){a=b;"IFRAME"!=a.tagName&&(a=AdfDomUtils.getFirstChildElement(b));if(!a||"IFRAME"!=a.tagName)return!1;a.src=d;return!0};AdfDhtmlInlineFramePeer.prototype.BindToComponent=function(a,b){AdfDhtmlInlineFramePeer.superclass.BindToComponent.call(this,a,b);var d=b;"IFRAME"!=d.tagName&&(d=AdfDomUtils.getFirstChildElement(b));"preferred"===a.getSizing()&&"1"===d.getAttribute("_adfLoaded")&&AdfDhtmlInlineFramePeer._registerIFrameForSizing(d)}; AdfDhtmlInlineFramePeer.prototype.ComponentRemoved=function(a){var b=a.getSizing(),d=AdfPage.PAGE;d.unregisterLoadingComponent(a);"preferred"===b&&(b=AdfDhtmlInlineFramePeer._iframeIds,AdfCollections.removeArrayValue(b,a.getClientId()),0==b.length&&(d.getDomWindow().clearInterval(b._timerId),b._timerId=void 0));AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM&&(this.bind(a),d=this.__getIframe(),AdfDomUtils.setVisible(d,!1),d.setAttribute("onload","void(0)"),d.setAttribute("src","about:blank")); AdfDhtmlInlineFramePeer.superclass.ComponentRemoved.call(this,a)};AdfDhtmlInlineFramePeer.prototype.ScrollIntoView=function(a,b,d){a=this.getDomElement();"IFRAME"!=a.tagName&&(a=AdfDomUtils.getFirstChildElement(a));a.scrollIntoView();var e=a.contentWindow.document,f=null;null!=d&&(f=e.getElementById(d))&&f.scrollIntoView();b&&(f?AdfFocusUtils.focusElement(f):AdfFocusUtils.focusElement(a))}; AdfDhtmlInlineFramePeer._loadHandler=function(a){AdfPage.PAGE.__perfTimings(!1,!1,!1,"iFrame load handler called.");var b=AdfAgent.AGENT,d=AdfPage.PAGE;b.getPlatform()==AdfAgent.IE_PLATFORM?(a||(a=d.getDomWindow().event),a=b.cloneEvent(a)):b.getPlatform()==AdfAgent.WEBKIT_PLATFORM&&(a=b.cloneEvent(a));b=b.getEventTarget(a);null==b&&(b=a.currentTarget);"1"===b.getAttribute("_adfLoaded")&&AdfPage.PAGE.__perfTimings(!1,!1,!0,"GET response received for iFrame. Source is: ",b.getAttribute("src"));var e= b.getAttribute("id"),f=e.indexOf("::f");-1!=f&&f==e.length-3&&(e=b.parentNode.getAttribute("id"));AdfAssert.assertString(e,"clientId");(d=d.findComponent(e))?(AdfDhtmlInlineFramePeer._removeLoadingStatus(b,e),(new AdfDomComponentEvent(d,AdfDhtmlInlineFramePeer._LOAD_EVENT_TYPE,a)).queue(!0),"preferred"===d.getSizing()?AdfDhtmlInlineFramePeer._isIframeSizingAllowed(b)?"1"===b.getAttribute("_adfLoaded")?(b.style.minWidth="0px",b.style.minHeight="0px",AdfPage.PAGE.__perfTimings(!1,!1,!1,"Immediately resizing iFrame."), AdfDhtmlInlineFramePeer._resizeIframeToPreferred(b),AdfPage.PAGE.__perfTimings(!0,!1,!0,"Response processig done for iFrame. Source is: ",b.getAttribute("src"))):(AdfPage.PAGE.__perfTimings(!1,!1,!1,"Registering iFrame for resizing."),AdfDhtmlInlineFramePeer._registerIFrameForSizing(b)):AdfPage.PAGE.__perfTimings(!0,!1,!0,"Response processig done for iFrame. Source is: ",b.getAttribute("src")):AdfPage.PAGE.__perfTimings(!0,!1,!0,"Response processig done for iFrame. Source is: ",b.getAttribute("src"))): b.setAttribute("_adfLoaded","1")};AdfDhtmlInlineFramePeer.__iframeLoadHandler=function(a){a.target.contentWindow.postMessage("_adfShowBody","*");try{AdfDhtmlInlineFramePeer._loadHandler(a)}catch(b){AdfLogger.LOGGER.logErrorAsInfo(b,"inlineFrame load handler")}}; AdfDhtmlInlineFramePeer._removeLoadingStatus=function(a,b){null==a.getAttribute("_src")&&(AdfDomUtils.containsCSSClassName(a,"p_AFFlow")?(AdfDomUtils.removeCSSClassName(a,"p_AFBusy"),AdfLogger.LOGGER.fine("Removed busy from iframe: ",b)):(AdfDomUtils.removeCSSClassName(a.parentNode,"p_AFBusy"),AdfLogger.LOGGER.fine("Removed busy from iframe's parentNode: ",b)))}; AdfDhtmlInlineFramePeer._registerIFrameForSizing=function(a){AdfAssert.assertDomElement(a);if(AdfDhtmlInlineFramePeer._isIframeSizingAllowed(a)){var b=AdfDhtmlInlineFramePeer._iframeIds,d=a.id;-1d&&(e.minHeight="0px",b=!0));return b}; AdfDhtmlInlineFramePeer._minSizeResizeListener=function(){var a=AdfDhtmlInlineFramePeer._iframeIds;if(0!=a.length){for(var b=!1,d=document,e=a.length,f=AdfDhtmlInlineFramePeer._resizeIframeToPreferred,g=0;gh+g||a.yk+f)){var f=AdfAgent.getCSSLengthAsInt(d.minWidth), g=AdfAgent.getCSSLengthAsInt(d.minHeight),h=AdfAgent.getCSSLengthAsInt(d.top),k=AdfAgent.getCSSLengthAsInt(d.left),e=h,n=k,p=l,q=m;switch(b){case AdfDhtmlPanelWindowBasePeer._HEADER_START_EDGE_SUBID:h=a.y;m+=e-a.y;k=a.x;l+=n-a.x;m=TrFacesMessage.SEVERITY_ERROR)return}}f=a.getParent();f instanceof AdfRichPopup?f.hide():a.setVisible(!1)}}; AdfDhtmlDialogPeer.prototype.fireCancel=function(){var a=this.getComponent(),b=new AdfDialogEvent(a,AdfDialogEvent.OUTCOME_CANCEL);a.broadcast(b)};AdfDhtmlDialogPeer.prototype.HandleComponentClick=function(a){var b=this.getComponent();this.IsBusy(b.getClientId())&&(a.cancel(),a.stopBubbling());(a.isCanceled()||!a.isLeftButtonPressed()||!this._queueDialogOutcome(b,a,!1))&&AdfDhtmlDialogPeer.superclass.HandleComponentClick.call(this,a)}; AdfDhtmlDialogPeer.prototype.handleEscapeKey=function(a){var b=this.getComponent();(new AdfDialogEvent(b,AdfDialogEvent.OUTCOME_CANCEL)).queue();AdfAgent.AGENT.eatEvent(a)}; AdfDhtmlDialogPeer.prototype.HandleComponentKeyDown=function(a){var b=this.getComponent();this.IsBusy(b.getClientId())&&(a.cancel(),a.stopBubbling());if(!a.isCanceled()&&a.getKeyCode()==AdfKeyStroke.ENTER_KEY){if(this._queueDialogOutcome(b,a,!0))return;var d=a.getNativeEventTarget(),e=d.tagName,f,g=b.getClientId();AdfDhtmlDialogPeer._isOKPresent(g)?f=AdfDialogEvent.OUTCOME_OK:AdfDhtmlDialogPeer._isYesPresent(g)&&(f=AdfDialogEvent.OUTCOME_YES);if("A"==e||"BUTTON"==e||"TEXTAREA"==e)f=null;else if("INPUT"== e&&(d=d.type,"button"==d||"submit"==d||"reset"==d))f=null;if(f){if(d=AdfPage.PAGE.getActiveComponent())(e=d.getPeer())&&e instanceof AdfDhtmlInputBasePeer&&e.__simulateBlur(d);a.cancel();a.stopBubbling();(new AdfDialogEvent(b,f)).queue();return}}AdfDhtmlDialogPeer.superclass.HandleComponentKeyDown.call(this,a)}; AdfDhtmlDialogPeer.prototype.HandleComponentKeyUp=function(a){if(!a.isCanceled()){var b=a.getKeyCode(),d=this.getComponent();if(b==AdfKeyStroke.SPACE_KEY&&this._queueDialogOutcome(d,a,!1))return}AdfDhtmlDialogPeer.superclass.HandleComponentKeyUp.call(this,a)}; AdfDhtmlDialogPeer.prototype.HandleComponentKeyPress=function(a){if(!a.isCanceled()&&a.getKeyCode()==AdfKeyStroke.ENTER_KEY){var b=a.getNativeEventTarget().getAttribute(AdfDhtmlDialogPeer._OUTCOME_ATTR_NAME_EXPANDO);if(b==AdfDialogEvent.OUTCOME_CANCEL){a.cancel();a.stopBubbling();a=this.getComponent();(new AdfDialogEvent(a,b)).queue();return}}AdfDhtmlDialogPeer.superclass.HandleComponentKeyPress.call(this,a)}; AdfDhtmlDialogPeer.prototype._queueDialogOutcome=function(a,b,d){var e;if(this.IsClose(b))e=AdfDialogEvent.OUTCOME_CANCEL;else{var f=b.getNativeEventTarget();e=a.getClientId();e=this._getButtonRootElement(f,e);var g=null==e?f:e;if((e=g.getAttribute(AdfDhtmlDialogPeer._OUTCOME_ATTR_NAME_EXPANDO))&&(f.disabled||AdfDomUtils.containsCSSClassName(g,AdfRichUIPeer.DISABLED_STYLECLASS)))e=null}d&&e==AdfDialogEvent.OUTCOME_CANCEL?e=!1:e&&(b.cancel(),b.stopBubbling(),(new AdfDialogEvent(a,e)).queue());return e}; AdfDhtmlDialogPeer.prototype._getButtonRootElement=function(a,b){if(AdfDhtmlDialogPeer._usesUnifiedButtons(b)){for(var d=0;4>d;d++){var e=a.id;if(e.length&&e.length>b.length&&b==e.substring(0,b.length))return a;a=a.parentNode}return null}return"SPAN"==a.tagName&&"BUTTON"==a.parentNode.tagName?a.parentNode:a};AdfDhtmlDialogPeer._isOKPresent=function(a){return null!=AdfDhtmlDialogPeer._getButtonDom(a,AdfDhtmlDialogPeer._OK_ID)}; AdfDhtmlDialogPeer._isYesPresent=function(a){return null!=AdfDhtmlDialogPeer._getButtonDom(a,AdfDhtmlDialogPeer._YES_ID)};AdfDhtmlDialogPeer._getButtonDom=function(a,b){return AdfDhtmlDialogPeer._usesUnifiedButtons(a)?AdfAgent.AGENT.getElementById(a+"_"+b):AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a,b))};AdfDhtmlDialogPeer._usesUnifiedButtons=function(a){return"old"==AdfPage.PAGE.getLookAndFeel().getSkinProperty("af|dialog-tr-button-type")?!1:1==a.split("::").length}; AdfDhtmlDialogPeer._setOutcomeExpandos=function(a){for(var b=AdfDhtmlDialogPeer._BUTTON_IDS,d=AdfDhtmlDialogPeer._BUTTON_OUTCOMES,e=b.length,f=0;fs&&(s=a);d.getExpandoProperty(r,AdfRichUIPeer.__TYPE_ATTR)!=s&&(d.setExpandoProperty(r,AdfRichUIPeer.__TYPE_ATTR,s),l=AdfMessageUtils.getIcon(s,!0),e.setTitleIconSource(l.src),p?e.setTitle(p):e.setTitle(AdfMessageUtils.getString(s))); l=AdfRichUIPeer.CreateSubId(f,"_cnt");if(l=d.getElementById(l))k=AdfMessageUtils.getCombinedMessagesDom(k,n,g),null!=q&&(k.title=q),l.hasChildNodes()?l.replaceChild(k,l.firstChild):l.appendChild(k);this.isMessagesInline()&&(k={},k[AdfDhtmlPopupHints.TOP_POSITION]=0.25,d=d.getElementById(f),this.showPopup(h,d,k))}this._globalMessageCount=b};AdfDhtmlDocumentPeer.prototype._getSlaveComponent=function(){var a=AdfPage.PAGE,b=a.getMessageHandlerSlaveComponentId();return null!=b?a.findComponent(b):null}; AdfDhtmlDocumentPeer.prototype._hideMessagePopup=function(){var a=this.getComponent();this.hidePopup(a)}; AdfDhtmlDocumentPeer.prototype._activateFocus=function(){var a=this.getComponent().getInitialFocusId();if(a){var b=AdfPage.PAGE.findComponentByAbsoluteId(a);b?b.focus():AdfLogger.LOGGER.warning("Invalid component id referenced by document initialFocusId: "+a+". You may need to set clientComponent to true for the desired focus component.")}window.clearTimeout(this._focusTimerId);this._focusTimerId=this._activateFocusCallback=null}; AdfDhtmlDocumentPeer.prototype._getSkipLinkElement=function(a){AdfAssert.assert(a);a=a.getClientId();a=AdfRichUIPeer.CreateSubId(a,AdfDhtmlDocumentPeer._SKIP_LINK_ID);return AdfAgent.AGENT.getElementById(a)};AdfDhtmlDocumentPeer._getSkipLinkTargetId=function(a){return a.getProperty("_afrSkpLnk")}; AdfDhtmlDocumentPeer.prototype._initSkipLink=function(a){var b=!1,d=AdfDhtmlDocumentPeer._getSkipLinkTargetId(a);d?null==AdfAgent.AGENT.getElementById(d)&&(b=!0,AdfLogger.LOGGER.warning("Unable to locate skip link target: "+d+". Make sure that af:skipLinkTarget is contained within a parent that generates content (and an id).")):b=!0;if(b&&(a=this._getSkipLinkElement(a)))a.style.display="none"}; AdfDhtmlDocumentPeer.prototype._skipToContent=function(){var a=AdfDhtmlDocumentPeer._getSkipLinkTargetId(this.getComponent()),a=AdfAgent.AGENT.getElementById(a);AdfAssert.assertDomElement(a);a=AdfDomUtils.getNextElementMatch(a,null,!1,AdfDhtmlDocumentPeer._isPotentiallyFocusable);AdfAssert.assertDomElement(a);a&&(AdfFocusUtils.isFocusable(a)||(a.tabIndex=-1),AdfFocusUtils.focusElement(a))}; AdfDhtmlDocumentPeer._isPotentiallyFocusable=function(a){if(AdfFocusUtils.isFocusable(a))return!0;var b=!1;switch(a.nodeName.toLowerCase()){case "div":case "span":case "h1":case "h2":case "h3":case "h4":case "h5":case "h6":b=!0}return b?AdfFocusUtils.isConnectedAndVisible(a):!1};AdfDhtmlDocumentPeer.prototype._setDocumentTitle=function(a){if((a=a.getTitle())&&this.getDomDocument().title!=a)a=this.createCallback(this._delayedSetDocumentTitle),setTimeout(a,0)}; AdfDhtmlDocumentPeer.prototype._delayedSetDocumentTitle=function(){var a=this.getDomDocument(),b=this.getComponent();b&&(a.title=b.getTitle())};AdfDhtmlDocumentPeer.prototype._setUncommittedDataWarning=function(a){a=(a=a.getUncommittedDataWarning())&&"on"==a.toLowerCase();AdfPage.PAGE.__initUncommittedDataWarningForDocument(a)}; AdfDhtmlDocumentPeer.prototype.__showAlertConfirm=function(a,b,d,e,f){AdfAssert.assertString(b,"confirm title");AdfAssert.assertString(d,"confirm message");AdfAssert.assertFunction(e,"confirm callback");f&&AdfAssert.assertNumber(f,"confirm timeout");var g=AdfPage.PAGE,h=AdfAgent.AGENT.getElementById(AdfDhtmlDocumentPeer._ALERT_CONFIRM_DIALOG_CONTAINER_ID);AdfAssert.assertDomElement(h,"DIV");var k=h.getAttribute(AdfDhtmlDocumentPeer._ALERT_CONFIRM_DIALOG_ID_EXPANDO);AdfAssert.assertString(k,"alert/confirm dialog id"); var l=g.findComponent(k);AdfAssert.assertPrototype(l,AdfRichDialog);h=l.getParent();AdfAssert.assertPrototype(h,AdfRichPopup);if(h.isPopupVisible())return!1;l.setTitle(b);AdfDhtmlDocumentPeer._setAlertConfirmMessage(k,d);AdfDhtmlDialogPeer.__setButtonVisible(k,AdfDhtmlDocumentPeer._DIALOG_CANCEL_ID_SUBID,!a);l.addEventListener(AdfDialogEvent.EVENT_TYPE,AdfDhtmlDocumentPeer._alertConfirmCallback);a={callback:e,dialogId:k};f&&(a.timerId=g.scheduleTimer(this,AdfDhtmlDocumentPeer._alertConfirmTimeoutCallback, k,f));g.setPageProperty(k,a);f={};f[AdfDhtmlPopupHints.ZORDER_SCOPE]=AdfDhtmlPopupHints.ZORDER_SCOPE_BODY;h.show(f);return!0};AdfDhtmlDocumentPeer.prototype._getMessageDialogContainerId=function(){var a=this.getComponent().getClientId();return AdfRichUIPeer.CreateSubId(a,AdfDhtmlDocumentPeer._MESSAGE_DIALOG_CONTAINER_ID)};AdfDhtmlDocumentPeer._alertConfirmTimeoutCallback=function(a){a=AdfPage.PAGE.findComponent(a);var b=a.getPeer();b.bind(a);b.fireCancel()}; AdfDhtmlDocumentPeer._alertConfirmCallback=function(a){a.cancel();var b=a.getSource(),d=b.getClientId(),e=b.getParent();AdfAssert.assertPrototype(e,AdfRichPopup);e.cancel();var e=AdfPage.PAGE,f=e.getPageProperty(d);AdfAssert.assertObject(f,"alert/confirm state token invalid");e.setPageProperty(d,null);f.timerId&&e.cancelTimer(f.timerId);e=f.callback;try{e(a)}catch(g){AdfLogger.LOGGER.logErrorAsWarning(g,"exception caught calling alert/confirm dialog event callback")}b.setTitle("");AdfDhtmlDocumentPeer._setAlertConfirmMessage(d, "");b.removeEventListener(AdfDialogEvent.EVENT_TYPE,AdfDhtmlDocumentPeer._alertConfirmCallback)};AdfDhtmlDocumentPeer._setAlertConfirmMessage=function(a,b){var d=AdfAgent.AGENT,e=AdfRichUIPeer.createSubId(a,AdfDhtmlDocumentPeer._DIALOG_CONTENT_SUBID),e=d.getElementById(e);AdfAssert.assertDomElement(e,"TD");d.setTextContent(e,b)}; AdfRichUIPeer.createPeerClass(AdfDhtmlValuePeer,"AdfDhtmlOutputLabelPeer");AdfDhtmlOutputLabelPeer.InitSubclass=function(){AdfRichUIPeer.addComponentPropertyChanges(this,AdfRichOutputLabel.SHOW_REQUIRED)};AdfDhtmlOutputLabelPeer.prototype.InitDomElement=function(a,b){AdfDhtmlOutputLabelPeer.superclass.InitDomElement.call(this,a,b);this._changeForValue(a,b)};AdfDhtmlOutputLabelPeer.prototype.SetDisplayValue=function(a,b,d){AdfAssert.assertString(d);AdfAgent.AGENT.setTextContent(b,d)}; AdfDhtmlOutputLabelPeer.prototype.GetDisplayValue=function(a,b){AdfDomUtils.stripScripts(b);return AdfAgent.AGENT.getTextContent(b)};AdfDhtmlOutputLabelPeer.prototype.ComponentShowRequiredChanged=AdfDomUtils.componentShowRequiredChanged;AdfDhtmlOutputLabelPeer.prototype._getLabelElement=function(a){a=a.childNodes;for(i=0;i